package com.lib.mapper;

import com.github.pagehelper.Page;
import com.lib.pojo.DTO.RecommendPageDTO;
import com.lib.pojo.VO.RcommendVO;
import com.lib.pojo.VO.RecommendVO;
import com.lib.pojo.entity.Recommend;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface RecommendMapper {
    //1:根据套餐ID查询图书
    List<RcommendVO> getRecommendById(Integer recommendId);
    
    //2:根据套餐ID删除套餐
    void deleteById(Integer recommendId);
    
    //3:根据套餐ID查询套餐信息
    List<RcommendVO> getRecommendInfoById(Integer recommendId);


    //4:启用、禁用套餐
    void putRecommend(Recommend recommend);

    //5:新增套餐
    void addRecommend(Recommend recommend);

    //套餐分页查询
    Page<RecommendVO> page(RecommendPageDTO recommendPageDTO);
    Page<RecommendVO> pageAll(RecommendPageDTO recommendPageDTO);

    //6:修改套餐
    //void putRecommend(Integer status,Integer recommendId);
}
